import 'package:equatable/equatable.dart';
import '../model/training_record.dart';

abstract class TrainingHistoryEvent extends Equatable {
  const TrainingHistoryEvent();

  @override
  List<Object?> get props => [];
}

class TrainingHistoryLoaded extends TrainingHistoryEvent {
  const TrainingHistoryLoaded();
}

class TrainingRecordAdded extends TrainingHistoryEvent {
  final TrainingRecord record;

  const TrainingRecordAdded(this.record);

  @override
  List<Object?> get props => [record];
}

class TrainingRecordsCleared extends TrainingHistoryEvent {
  const TrainingRecordsCleared();
}